package com.yunsc.store.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yunsc.store.dto.QueryUserParamsDTO;
import com.yunsc.store.entity.YunscUserEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 用户记录表
 * 
 * @author adan
 * @email 2028038953@qq.com
 * @date 2024-04-22 11:35:49
 */
@Mapper
public interface YunscUserDao extends BaseMapper<YunscUserEntity> {

    /**
     * 根据用户ID查询用户信息
     * @param userId 用户ID
     * @return 用户信息
     */
    YunscUserEntity selectUserInfo(@Param("userId") Integer userId);



    Page<YunscUserEntity> selectUserPage(Page<YunscUserEntity> objectPage,
                                         @Param("param") QueryUserParamsDTO param,
                                         @Param("storeId") Integer storeId);
}
